<template>
  <div style="padding: 50px; text-align: center;">
    <h1>测试页面</h1>
    <p>如果这个页面可以显示，说明路由系统正常工作</p>
    <button @click="goBack" style="padding: 10px 20px; margin: 10px;">返回主页</button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.push('/')
}
</script>